package com.iris.live.services.report.data.carmodelline;

import com.iris.live.services.report.data.ColumnUnit;
import com.iris.live.services.report.data.ReportContext;

import java.util.ArrayList;
import java.util.List;

/**
 * 品牌车型上下文环境
 * @author: wangzhenyan
 * date: 2017/8/31 18:43
 */
public class CarModellineContext extends ReportContext{

    List<CarModelUnit> units = new ArrayList<>();

    public List<CarModelUnit> getUnits() {
        return units;
    }

    public void setUnits(List<CarModelUnit> units) {
        this.units = units;
    }

    public CarModellineContext addUnits(List<CarModelUnit> units) {
        this.units.addAll(units);
        return this;
    }

    @Override
    public List<? extends ColumnUnit> getColumnUnits() {
        return units;
    }

}
